﻿using Data.Service;
using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using SYT.Web.liberty;
using SYT.Web.WebApi;

namespace SYT.Web.Controllers
{
    public class IntelligenceManageController : MasterPage
    {
        //自动重复
        public ActionResult AutoResend()
        {
            Users Users  =  MasterPage.user;
            ViewBag.AutoResend = Intelligence_AutoResendData.GetAutoResend(Users.memberId);
            ViewBag.TodayLog = Intelligence_AutoResendData.GetSendCount(2, Users.memberId);
            ViewBag.Atotalof = Intelligence_AutoResendData.GetSendCount(1, Users.memberId);

            return View();
        }
        //自动评价
        public ActionResult AutoAppraise()
        {
            Users Users = MasterPage.user;
            ViewBag.AutoAppraise = Intelligence_AutoAppraiseData.GetAutoAppraise(Users.memberId);
            ViewBag.TodayLog = Intelligence_AutoAppraiseData.GetAutoAppraiseCount(2, Users.memberId);
            ViewBag.Atotalof = Intelligence_AutoAppraiseData.GetAutoAppraiseCount(1, Users.memberId);
            return View();
        }
        //自动橱窗
        public ActionResult AutoWindow()
        {
            Users Users = MasterPage.user;
            ViewBag.AutoWindow = Intelligence_AutoWindowData.GetAutoWindow(Users.memberId);

            return View();
        }
        //自动补库存
        public ActionResult AutoStock()
        {
            Users Users = MasterPage.user;
            ViewBag.AutoStock = Intelligence_AutoStockData.GetAutoStock(Users.memberId);
            return View();
        }
    }
}
